<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
  <meta http-equiv="Content-Type" content=
  "text/html; charset=UTF-8">

  <title>WRITER_DATA_LIFECYCLE</title>
  <link rel="stylesheet" type="text/css" href="QoS.css">
  <link rel="stylesheet" type="text/css" href="../../styles.css">
</head>

<body>

<H4 CLASS="Head3">
<A NAME="pgfId-259572"></A>WRITER_DATA_LIFECYCLE</H4>
<UL>
<LI CLASS="BodyNoLead">
<A NAME="pgfId-266163"></A>The <A NAME="marker-266261"></A>WRITER_DATA_LIFECYCLE QoS policy controls the lifecycle of data instances managed by a data writer. Here is the IDL for the Writer Data Lifecycle QoS policy:</LI>
</UL>
<P CLASS="Code">
<A NAME="pgfId-277918"></A>&nbsp;</P>
<P CLASS="Code">
<A NAME="pgfId-277959"></A>struct WriterDataLifecycleQosPolicy {</P>
<P CLASS="Code">
<A NAME="pgfId-277960"></A>  boolean autodispose_unregistered_instances;</P>
<P CLASS="Code">
<A NAME="pgfId-277948"></A>};</P>
<P CLASS="Code">
<A NAME="pgfId-277972"></A>&nbsp;</P>
<UL>
<LI CLASS="Body">
<A NAME="pgfId-277747"></A>When <EM CLASS="Code">
autodispose_unregistered_instances</EM>
 is set to true (the default), a data writer disposes an instance when it is unregistered. In some cases, it may be desirable to prevent an instance from being disposed when an instance is unregistered. This policy could, for example, allow an EXCLUSIVE data writer to gracefully defer to the next data writer without affecting the instance state. Deleting a data writer implicitly unregisters all of its instances prior to deletion.</LI>
</UL>

</body>
</html>
